
Page({
    data: {
      articleLink: ''
    },
    onLoad(t) {
      if (t.to) {
        this.setData({
          articleLink: decodeURIComponent(t.to)
        })
      } else {
        console.warn('Not URL!!!');
        wx.switchTab({ url: '/pages/index/index' });
      }
    },
    onReady() {},
    onShow() {},
    onHide() {},
    onUnload() {},
    onPullDownRefresh() {},
    onReachBottom() {},
    onShareAppMessage() {}
  })
